import request from "../utils/request"
import {Response} from "@/Interface/base"
import { ShopResponse } from "../Interface/shop"

// 获取店铺列表
export const GetShops = (): Response<string> =>{
	return request({url:'/admin/shops',method:'get'})
}

// 添加店铺
export const PostShopData = (data: ShopResponse): Response<string> =>{
	return request({url:`/admin/shop`,method:'post',data})
}